projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
754eabe
)
eventbox: Stop setting state flags on the style context for drawing
author
Rui Matos
<tiagomatos@gmail.com>
Mon, 19 Dec 2011 12:24:30 +0000
(12:24 +0000)
committer
Rui Matos
<tiagomatos@gmail.com>
Mon, 19 Dec 2011 19:21:16 +0000
(19:21 +0000)
gtk/gtkeventbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtkeventbox.c
b/gtk/gtkeventbox.c
index d2d8c6d39d7df8d83d219a4c0361bf8c0a7ebdf5..90954a2c022b12e597c3adfed892e660e0d833d7 100644
(file)
--- a/
gtk/gtkeventbox.c
+++ b/
gtk/gtkeventbox.c
@@
-596,12
+596,9
@@
gtk_event_box_draw (GtkWidget *widget,
context = gtk_widget_get_style_context (widget);
- gtk_style_context_save (context);
- gtk_style_context_set_state (context, gtk_widget_get_state_flags (widget));
gtk_render_background (context, cr, 0, 0,
gtk_widget_get_allocated_width (widget),
gtk_widget_get_allocated_height (widget));
- gtk_style_context_restore (context);
}
GTK_WIDGET_CLASS (gtk_event_box_parent_class)->draw (widget, cr);